var mongoose = require('mongoose');

mongoose.connect('mongodb://localhost/test');

var schema = mongoose.Schema;

var carSchema = new schema({
    id:{
        type:String,
        required:true
    },
    brand:{
        type:String,
        required:true
    },
    price:{
        type:String,
        required:true
    },
    ctirm:{
        type:String,
        required:true
    }
});
var car = mongoose.model('car',carSchema);

module.exports = car;

